import type { ProxyOptions } from "vite";

const proxy: Record<string, string | ProxyOptions> = {
  "/api": {
    // target: "https://api.jindisc.com",
    target: "http://test-api.jindisc.com",
    ws: true,
    changeOrigin: true,
    rewrite: (path) => path.replace(/^\/api/, ""),
  },
};
export default proxy;
